package com.notice.rule.limit;

import com.google.common.util.concurrent.RateLimiter;

/**
 * 单机限流
 *
 * @author DZL
 * @date 2023/1/31 14:15
 */
public class StandAloneLimit implements IRateLimit {

    public RateLimiter rateLimit;

    public StandAloneLimit() {
        rateLimit = RateLimiter.create(0.32);
    }


    @Override
    public void acquire() {
        rateLimit.acquire();
    }
}
